import request from '@/utils/request'
/**
 * @description 获取验证码的接口
 * @param {*} phone
 * @returns
 */
export const reqCode = (phone) => {
  return request.get(`/api/user/passport/sendCode/${phone}`)
}
/**
 * @description 注册接口
 * @param {*} data，要传递过去的参数
 * @returns
 */
export const reqRegister = (data) => {
  return request.post('/api/user/passport/register', data)
}

/**
 * @description 登录接口
 * @param {*} data
 * @returns
 */
export const reqLogin = (data) => {
  return request.post('/api/user/passport/login', data)
}
/**
 * @description 退出登录
 * @returns
 */
export const reqLogout = () => {
  return request.get('/api/user/passport/logout')
}
